<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.SettingsControl"
    CodeBehind="Settings.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-configuration.png" alt="Configuration" />
        All Settings
    </div>
    <div class="options">
        <input type="button" onclick="location.href='SettingAdd.aspx'" value="Add new" id="btnAddNew"
            class="adminButtonBlue" title="Add a new setting" />
    </div>
</div>
<asp:GridView ID="gvSettings" runat="server" AutoGenerateColumns="False" Width="100%"
    OnPageIndexChanging="gvSettings_PageIndexChanging" AllowPaging="true" PageSize="15">
    <Columns>
        <asp:BoundField DataField="SettingID" HeaderText="SettingID" Visible="False"></asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="40%">
            <ItemTemplate>
                <a href="SettingDetails.aspx?SettingID=<%#Eval("SettingID")%>" title="Edit setting">
                    <%#Server.HtmlEncode(Eval("Name").ToString())%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Value" ItemStyle-Width="40%">
            <ItemTemplate>
                <%#Server.HtmlEncode(Eval("Value").ToString())%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="SettingDetails.aspx?SettingID=<%#Eval("SettingID")%>" title="Edit setting">
                    Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
